#ifndef CCHECKBOX_H
#define CCHECKBOX_H

#include "cControl.h"


class cCheckbox : public cControl
{
    public:
        cCheckbox(cHwnd * hwndParent,LPCSTR label,int x,int y,int largeur,int hauteur,cHwnd * HWNDParent=NULL);
        virtual ~cCheckbox();
        functionEvenement   onClick;

        bool        GetChecked();
        void        SetChecked(bool check);

        void        SetText(string texte);
        string      GetText();

    protected:
    private:
        bool         TraitementEvent(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam,LRESULT &resultat);
};

#endif // CCHECKBOX_H
